<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>表单提交</title>
</head>
<body>
<!-- 
Form table表单会以Parameter参数形式提交
响应页使用param.name取出
 -->
 
<font color="purple" size="3" face="楷体">Form table表单提交会以Parameter参数形式提交到action目标</font>
<form action="el2.jsp" method="post">
	<table>
		<tr>
			<td>姓名：</td>
			<td><input type="text" name="name"/></td>
		</tr>
		<tr>
			<td>年龄：</td>
			<td><input type="text" name="age"/></td>
		</tr>
		<tr>
			<td>表单提交：</td>
			<td><input type="submit" value="提交到el2.jsp"/></td>
		</tr>
	</table>
</form>
<!-- 
超链接提交
 -->
<br>
<font color="purple" size="3" face="楷体">超链接提交：</font>
<a href="el2.jsp?age=25">提交年龄25到el2.jsp</a>
<!-- 
Form提交checkbox数组，name需要相同，使用paramValues.数组名[下标]取出
 -->
<br><br> <font color="purple" size="3" face="楷体">Form提交checkbox数组：</font>
<form action="el2.jsp" method="post">
	<input type="checkbox" name="hobby" value="java语言"/>Java语言
	<input type="checkbox" name="hobby" value="C语言"/>C语言
	<input type="checkbox" name="hobby" value="php语言"/>php语言<br>
	<input type="submit" value="提交到el2.jsp"/>
</form>
</body>
</html>